

===   [ collect test cases ]  === 


== cases/__st__.py 


== cases/class_cases.py 


** no cases in this file , skip it.

== cases/七一班/__st__.py 


== cases/七一班/student_web_cases.py 


** no cases in this file , skip it.

== cases/七一班/teacher_cases.py 


** no cases in this file , skip it.

== cases/七一班/class_cases.py 


** no cases in this file , skip it.

== cases/七一班/teacher_web_cases.py 


** no cases in this file , skip it.

== cases/七一班/中学生/__st__.py 


== cases/七一班/中学生/teacher_web_cases.py 


** no cases in this file , skip it.

== cases/七一班/安老师-数学老师/__st__.py 


== cases/七一班/安老师-数学老师/student_cases.py 


** no cases in this file , skip it.

== cases/七一班/安老师-数学老师/teacher_cases.py 


** no cases in this file , skip it.

== cases/七一班/安老师-数学老师/大学生/__st__.py 


== cases/七一班/安老师-数学老师/大学生/student_cases.py 


** no cases in this file , skip it.

== cases/七一班/安老师-数学老师/大学生/teacher_web_cases.py 



===   [ execute test cases ]  === 

Number of cases to run : 1



  ========= Test Start : 20250701_142643 =========



>>> cases/

[ suite setup ] cases/


>>> cases/七一班/

[ suite setup ] cases/七一班/
{'invitecode': '203948881526', 'retcode': 0, 'id': 20394}


>>> cases/七一班/安老师-数学老师/

[ suite setup ] cases/七一班/安老师-数学老师/


>>> cases/七一班/安老师-数学老师/大学生/

[ suite setup ] cases/七一班/安老师-数学老师/大学生/


>>> cases/七一班/安老师-数学老师/大学生/teacher_web_cases.py

* 老师发布作业 - tc005106  -  2025-07-01 14:26:45

  [ case execution steps ]

-- Step #1 -- 数学老师登录 


-- Step #2 -- 发布作业-作业名101个字符 

  ABORT   Message: no such window: target window already closed
from unknown error: web view not found
  (Session info: chrome=137.0.7151.120)
Stacktrace:
0   chromedriver                        0x00000001025303bc cxxbridge1$str$ptr + 2829900
1   chromedriver                        0x0000000102528684 cxxbridge1$str$ptr + 2797844
2   chromedriver                        0x0000000102065fbc cxxbridge1$string$len + 90140
3   chromedriver                        0x0000000102040798 chromedriver + 133016
4   chromedriver                        0x00000001020d5048 cxxbridge1$string$len + 544936
5   chromedriver                        0x00000001020edb50 cxxbridge1$string$len + 646064
6   chromedriver                        0x00000001020a13f8 cxxbridge1$string$len + 332888
7   chromedriver                        0x00000001024f47e0 cxxbridge1$str$ptr + 2585200
8   chromedriver                        0x00000001024f7ab0 cxxbridge1$str$ptr + 2598208
9   chromedriver                        0x00000001024d5db4 cxxbridge1$str$ptr + 2459716
10  chromedriver                        0x00000001024f8328 cxxbridge1$str$ptr + 2600376
11  chromedriver                        0x00000001024c7640 cxxbridge1$str$ptr + 2400464
12  chromedriver                        0x000000010251828c cxxbridge1$str$ptr + 2731292
13  chromedriver                        0x0000000102518418 cxxbridge1$str$ptr + 2731688
14  chromedriver                        0x00000001025282d0 cxxbridge1$str$ptr + 2796896
15  libsystem_pthread.dylib             0x000000018dbf6c0c _pthread_start + 136
16  libsystem_pthread.dylib             0x000000018dbf1b80 thread_start + 8
 
Traceback:
  File "cases/七一班/安老师-数学老师/大学生/teacher_web_cases.py", line 133, in teststeps
    info = top.getAddHomewordInfo()
  File "/Users/sunlei/Desktop/测试开发实战班/自动化测试/亿教亿学项目/lib/webui/TeacherOp.py", line 168, in getAddHomewordInfo
    self.wd.find_element(By.CSS_SELECTOR, 'a[href="#/exam_search"] .submenu-title').click()
  File "/Users/sunlei/Desktop/测试开发实战班/自动化测试/亿教亿学项目/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 770, in find_element
    return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
  File "/Users/sunlei/Desktop/测试开发实战班/自动化测试/亿教亿学项目/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 384, in execute
    self.error_handler.check_response(response)
  File "/Users/sunlei/Desktop/测试开发实战班/自动化测试/亿教亿学项目/venv/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchWindowException: Message: no such window: target window already closed
from unknown error: web view not found
  (Session info: chrome=137.0.7151.120)
Stacktrace:
0   chromedriver                        0x00000001025303bc cxxbridge1$str$ptr + 2829900
1   chromedriver                        0x0000000102528684 cxxbridge1$str$ptr + 2797844
2   chromedriver                        0x0000000102065fbc cxxbridge1$string$len + 90140
3   chromedriver                        0x0000000102040798 chromedriver + 133016
4   chromedriver                        0x00000001020d5048 cxxbridge1$string$len + 544936
5   chromedriver                        0x00000001020edb50 cxxbridge1$string$len + 646064
6   chromedriver                        0x00000001020a13f8 cxxbridge1$string$len + 332888
7   chromedriver                        0x00000001024f47e0 cxxbridge1$str$ptr + 2585200
8   chromedriver                        0x00000001024f7ab0 cxxbridge1$str$ptr + 2598208
9   chromedriver                        0x00000001024d5db4 cxxbridge1$str$ptr + 2459716
10  chromedriver                        0x00000001024f8328 cxxbridge1$str$ptr + 2600376
11  chromedriver                        0x00000001024c7640 cxxbridge1$str$ptr + 2400464
12  chromedriver                        0x000000010251828c cxxbridge1$str$ptr + 2731292
13  chromedriver                        0x0000000102518418 cxxbridge1$str$ptr + 2731688
14  chromedriver                        0x00000001025282d0 cxxbridge1$str$ptr + 2796896
15  libsystem_pthread.dylib             0x000000018dbf6c0c _pthread_start + 136
16  libsystem_pthread.dylib             0x000000018dbf1b80 thread_start + 8



[ suite teardown ] cases/七一班/安老师-数学老师/大学生/

[ suite teardown ] cases/七一班/安老师-数学老师/

[ suite teardown ] cases/七一班/


  ========= Test End : 20250701_142753 =========


  Duration Of Testing     : 69.266 秒


  number of cases plan to run : 1

  number of cases actually run : 1

  passed : 0

  failed : 0

  exception aborted : 1

  suite setup failed : 0

  suite teardown failed : 0

  cases setup failed : 0

  cases teardown failed : 0
